package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SQuestionData extends Object implements IMessageBase
    {
        public var num:int;
        public var totalNum:int;
        public var questionDt:Date;
        public var question:SQuestion;
        public const _type:int = 20451;
        public static var _regist:SQuestionData = new SQuestionData(true);

        public function SQuestionData(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SQuestionData();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.num);
            param1.writeInt(this.totalNum);
            param1.writeDate(this.questionDt);
            this.question.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.num = param1.readInt();
            this.totalNum = param1.readInt();
            this.questionDt = param1.readDate();
            this.question = new SQuestion();
            this.question.__read(param1);
            
        }

    }
}
